.class public Les/bf;
.super Ljava/lang/Object;
.source "DirAnalyzer.java"

# interfaces
.implements Les/ef;


# static fields
.field private static final e:Ljava/lang/String; = "bf"


# instance fields
.field private final a:Ljava/lang/String;

.field private final b:Les/xe$f;

.field private final c:Les/lf;

.field private d:Ljava/util/concurrent/CountDownLatch;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Les/xe$f;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/bf;->a:Ljava/lang/String;

    .line 3
    iput-object p2, p0, Les/bf;->b:Les/xe$f;

    .line 4
    new-instance p1, Les/lf;

    invoke-direct {p1}, Les/lf;-><init>()V

    iput-object p1, p0, Les/bf;->c:Les/lf;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Les/zf;
    .locals 4

    .line 13
    :try_start_0
    iget-object v0, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 14
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 15
    :goto_0
    iget-object v0, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v0, p1}, Les/lf;->a(Ljava/lang/String;)Les/ag;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 16
    :cond_0
    sget-object v1, Les/bf;->e:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "root:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "/"

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Les/cg;->getPath()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v1, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 17
    invoke-virtual {v0}, Les/ag;->b()Lcom/estrongs/fs/g;

    move-result-object p1

    check-cast p1, Les/zf;

    return-object p1
.end method

.method public a()V
    .locals 2

    .line 1
    sget-object v0, Les/bf;->e:Ljava/lang/String;

    const-string v1, "\u53d6\u6d88\u76ee\u5f55\u5206\u6790\uff01\uff01"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    invoke-virtual {p0}, Les/bf;->stop()V

    return-void
.end method

.method public a(Les/we;)V
    .locals 1

    .line 3
    iget-object v0, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v0, p1}, Les/lf;->a(Les/we;)V

    return-void
.end method

.method public declared-synchronized a(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 4
    :try_start_0
    new-instance v0, Ljava/util/concurrent/CountDownLatch;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V

    iput-object v0, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;

    .line 5
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 6
    iget-object p1, p0, Les/bf;->b:Les/xe$f;

    if-eqz p1, :cond_0

    .line 7
    iget-object p1, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    .line 8
    iget-object p1, p0, Les/bf;->b:Les/xe$f;

    iget-object v0, p0, Les/bf;->a:Ljava/lang/String;

    const/4 v1, 0x6

    const/4 v2, 0x0

    invoke-interface {p1, v0, v1, v2}, Les/xe$f;->a(Ljava/lang/String;IZ)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 9
    :cond_0
    monitor-exit p0

    return-void

    .line 10
    :cond_1
    :try_start_1
    iget-object v0, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v0}, Les/lf;->c()V

    .line 11
    iget-object v0, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v0, p1}, Les/lf;->b(Ljava/util/List;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 12
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public b()Les/tf;
    .locals 10

    .line 1
    :try_start_0
    iget-object v0, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 2
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    :goto_0
    const-wide/16 v0, 0x0

    .line 3
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 4
    iget-object v2, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v2}, Les/lf;->d()Ljava/util/Map;

    move-result-object v2

    .line 5
    invoke-interface {v2}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const/4 v4, 0x0

    move-wide v6, v0

    const/4 v5, 0x0

    :cond_0
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/ag;

    if-nez v0, :cond_1

    goto :goto_1

    .line 6
    :cond_1
    invoke-virtual {v0}, Les/cg;->a()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 7
    invoke-virtual {v0}, Les/ag;->f()I

    move-result v1

    add-int/2addr v5, v1

    .line 8
    invoke-virtual {v0}, Les/ag;->g()I

    move-result v1

    add-int/2addr v4, v1

    .line 9
    invoke-virtual {v0}, Les/ag;->c()J

    move-result-wide v8

    add-long/2addr v6, v8

    .line 10
    invoke-virtual {v0}, Les/ag;->b()Lcom/estrongs/fs/g;

    move-result-object v0

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 11
    :cond_2
    new-instance v0, Les/tf;

    move-object v2, v0

    invoke-direct/range {v2 .. v7}, Les/tf;-><init>(Ljava/util/List;IIJ)V

    return-object v0
.end method

.method public b(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/hg;",
            ">;)V"
        }
    .end annotation

    .line 12
    :try_start_0
    iget-object v0, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 13
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 14
    :goto_0
    iget-object v0, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v0, p1}, Les/lf;->a(Ljava/util/List;)Z

    return-void
.end method

.method public c(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/hg;",
            ">;)V"
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 2
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 3
    :goto_0
    iget-object v0, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v0, p1}, Les/lf;->a(Ljava/util/List;)Z

    return-void
.end method

.method public declared-synchronized stop()V
    .locals 4

    monitor-enter p0

    .line 1
    :try_start_0
    sget-object v0, Les/bf;->e:Ljava/lang/String;

    const-string v1, "\u76ee\u5f55\u5206\u6790\u6b63\u5e38\u7ed3\u675f..."

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Les/bf;->c:Les/lf;

    invoke-virtual {v0}, Les/lf;->a()V

    .line 3
    iget-object v0, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v1, 0x0

    const/4 v2, 0x6

    if-nez v0, :cond_0

    .line 4
    :try_start_1
    iget-object v0, p0, Les/bf;->b:Les/xe$f;

    iget-object v3, p0, Les/bf;->a:Ljava/lang/String;

    invoke-interface {v0, v3, v2, v1}, Les/xe$f;->a(Ljava/lang/String;IZ)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 5
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 6
    :goto_0
    monitor-exit p0

    return-void

    .line 7
    :cond_0
    :try_start_3
    iget-object v0, p0, Les/bf;->d:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    .line 8
    iget-object v0, p0, Les/bf;->b:Les/xe$f;

    iget-object v3, p0, Les/bf;->a:Ljava/lang/String;

    invoke-interface {v0, v3, v2, v1}, Les/xe$f;->a(Ljava/lang/String;IZ)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 9
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
